home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 271_02 / lexcmp.doc < prev    next >
Text File  |  1987-08-18  |  995b  |  39 lines

  1.  
  2.  
  3.         NAME
  4.                 lexcmp -- perform comparison on two strings, case independent
  5.  
  6.         SYNOPSIS
  7.                 r = lexcmp(str1, str2);
  8.                 int r;     returns TRUE or FALSE
  9.                 char str1, str2;    strings to compare
  10.  
  11.  
  12.         DESCRIPTION
  13.         This function compares two strings for exactness through each
  14.         string's NULL terminator.  Case is ignored, but the strings must be
  15.         an exact match in all other respects, including length.  Returns
  16.         FALSE (0) if not the same, and TRUE if the same.
  17.  
  18.  
  19.         EXAMPLE
  20.              char *str1[] = "FOObar";
  21.              char *str2[] = "fooBAR";
  22.              if(lexcmp(str1, str2)) printf("Strings match\n");
  23.              else printf("Strings do not match\n");
  24.  
  25.              In this example, the strings match, because upper and
  26.              lower case are considered equal.
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.        This function is found in SMTCx.LIB for the Turbo-C Compiler.
  39.